package com.puppet.building182.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.puppet.building182.handler.HouseConverter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class House {
    private Integer id;
    @ExcelProperty("房屋编号")
    private Integer hid;
    @ExcelProperty("房屋编号")
    private Integer houseNo;
    @ExcelProperty("房屋楼层")
    private Integer floor;
    @ExcelProperty("房屋面积")
    private BigDecimal area;
    @ExcelProperty("入住时间")
    private Date liveTime;
    @ExcelProperty("房屋状态")
    private Integer state;
    @ExcelProperty("所属楼栋")
    @ExcelIgnore
    private Integer buildingId;
    @ExcelProperty("备注")
    private String remarks;
    @ExcelProperty(converter = HouseConverter.class,value = "所属楼宇")
    private Building buildings;
    @ExcelProperty(converter = HouseConverter.class,value = "所属业主")
    private Owner owners;
}
